package Org.lanqiao.team.domain;

import Org.lanqiao.team.service.Status;

public class Programmer extends Employee {

    public Status status = Status.FREE;
    public Equipment equipment;
    public Programmer() {

    }
    public Programmer(int id, String name, int age, double salary,Equipment equipment){
        super( id, name, age, salary);
        this.equipment=equipment;
    }
    //ID   姓名   年龄   工资   职位   状态   奖金   股票   领用设备
    @Override
    public String toString() {
        return
                getId() +"    "+
                        getName()+"    "+
                        getAge()+"    "+
                        getSalary()+"    "+
                        "Programmer" +"  "+
                        status +
                        "                    "+
                        this.equipment.getDescription();
    }
}
